<template>
  <div :style="{ color: color }">儿子组件</div>

  <GrandSon />
</template>

<script setup>
import { inject } from 'vue'
import GrandSon from './GrandSon.vue'
const color = inject('color')
</script>
